﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ked
{
    class StringUtils
    {
        public static string AppendWithSep(List<string> valueList,
           string before, string after)
        {
            //(*.jpg | *.bmp)
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < valueList.Count - 1; i++)
            {
                sb.Append(before).Append(valueList[i]).Append(after);
            }

            sb.Append(before).Append(valueList.Last());
            return sb.ToString();
        }
    }
}
